<script>
export default {
	onLaunch: function(option) {
		const that = this;

		// 如果是扫描推荐码进来 需要存储推荐人信息
		const { scene } = option.query;
		if (scene) {
			that.globalData.spid = scene;
		}
		// 获取导航高度；
		uni.getSystemInfo({
			success: function(res) {
				// 胶囊 top:4+height32+bottom:8=44
				that.globalData.statusBarHeight = res.statusBarHeight;
				that.globalData.navHeight = res.statusBarHeight * (750 / res.windowWidth) + 88;
			}
		});
	},
	mounted() {},
	onShow: function() {},
	onHide: function() {},
	globalData: {
		spid: 0,
		code: 0,
		isLogin: false,
		userInfo: {},
		MyMenus: []
	}
};
</script>

<style>
@import url('@/plugin/animate/animate.min.css');
@import 'static/css/base.css';
@import 'static/iconfont/iconfont.css';
@import 'static/css/guildford.css';
@import 'static/css/style.scss';

view {
	box-sizing: border-box;
}
.bg-color-red {
	background-color: #e93323 !important;
}
.syspadding {
	padding-top: var(--status-bar-height);
}
.flex {
	display: flex;
}
.uni-scroll-view::-webkit-scrollbar {
	display: none;
}
::-webkit-scrollbar {
	width: 0;
	height: 0;
	color: transparent;
}
</style>
